import { SubjectTreeType, TopicData, ExamList, ExamTopicListDateType, ExamTopicType } from '@/util/interface'
import { DataType } from './interface'

//  初始数据
export const initialState: DataType = {
  loading: false,
  // 阅卷列表数据
  exam_list_data: {
    list: [],
    count: 0,
    page_no: 1,
    page_size: 2,
    current_page: 1,
    search_params: {
      user_name: '',
      judge: ''
    }
  },
  // 课程树型结构
  subject_tree: [],
  // 树型结构中二级课程的高亮
  subject_two_active: {
    value: '',
    title: ''
  },
  // 题目列表
  topic_list: [],
  // 被选中的题目
  active_topic: {} as TopicData,
  // 现在当前试卷的题目ID
  current_exam_topic_id: '',
  // 阅卷，查看或者答题试卷时候的列表
  exam_topic_list: [] as ExamTopicListDateType[],
  // 被选中的二级课程
  current_subject_two: {} as SubjectTreeType,
  current_exam_score: ''
}
